/*  1:   */ package org.intellij.images.thumbnail.actions;
/*  2:   */ 
/*  3:   */

import com.intellij.openapi.actionSystem.AnActionEvent;
import com.intellij.openapi.actionSystem.ToggleAction;
import org.intellij.images.thumbnail.ThumbnailView;
import org.intellij.images.thumbnail.actionSystem.ThumbnailViewActionUtil;

/*  4:   */
/*  5:   */
/*  6:   */
/*  7:   */ 
/*  8:   */ public final class ToggleRecursiveAction
/*  9:   */   extends ToggleAction
/* 10:   */ {
/* 11:   */   public boolean isSelected(AnActionEvent paramAnActionEvent)
/* 12:   */   {
/* 13:33 */     ThumbnailView localThumbnailView = ThumbnailViewActionUtil.getVisibleThumbnailView(paramAnActionEvent);
/* 14:34 */     return (localThumbnailView != null) && (localThumbnailView.isRecursive());
/* 15:   */   }
/* 16:   */   
/* 17:   */   public void setSelected(AnActionEvent paramAnActionEvent, boolean paramBoolean)
/* 18:   */   {
/* 19:38 */     ThumbnailView localThumbnailView = ThumbnailViewActionUtil.getVisibleThumbnailView(paramAnActionEvent);
/* 20:39 */     if (localThumbnailView != null) {
/* 21:40 */       localThumbnailView.setRecursive(paramBoolean);
/* 22:   */     }
/* 23:   */   }
/* 24:   */   
/* 25:   */   public void update(AnActionEvent paramAnActionEvent)
/* 26:   */   {
/* 27:45 */     super.update(paramAnActionEvent);
/* 28:46 */     ThumbnailViewActionUtil.setEnabled(paramAnActionEvent);
/* 29:   */   }
/* 30:   */ }



/* Location:           E:\idea\

 * Qualified Name:     org.intellij.images.thumbnail.actions.ToggleRecursiveAction

 * JD-Core Version:    0.7.0.1

 */